package com.lee

import com.baidu.ueditor.ActionEnter
import com.google.gson.JsonParser

class UeditorController {

    def index (){
        String rootPath = servletContext.getRealPath( "/" );
//        response.getWriter().write(new ActionEnter( request, rootPath ).exec())
        String str = new ActionEnter( request, rootPath ).exec();
        render new JsonParser().parse(str).getAsJsonObject()
    }
}